﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Win32Wrapper.Win32
{
    public struct _TitleBarInfo
    {
          public uint cbSize;
          public _Rect  rcTitleBar;
          public uint[] rgstate;
    }

    public class TitleBarInfo
    {
        public TitleBarInfo() { }
        public TitleBarInfo(_TitleBarInfo info) 
        {
            cbSize = info.cbSize;
            rcTitleBar = new Rect(info.rcTitleBar);

            for (int i = 0; i < info.rgstate.Count(); i++)
            {
                rgstate[i] = (TitleBarElementStatus)info.rgstate[i];
            }
        }

        public uint cbSize { get; set; }
        public Rect rcTitleBar { get; set; }
        public TitleBarElementStatus[] rgstate { get; set; }
    }
}
